--
-- Created by IntelliJ IDEA.
-- User: lblue
-- Date: 11/24/19
-- Time: 8:26 PM
--
function fact (n)
    if n == 0 then
        return 1
    else
        return n * fact(n-1)
    end
end
print("enter a number:")
a = io.read("*n")
print(fact(a))
